<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
error_reporting(E_ALL & ~E_NOTICE);//关闭为定义变量错误警告
return [

    
    // +----------------------------------------------------------------------
    // | 应用设置
    // +----------------------------------------------------------------------

    // 应用调试模式
    'app_debug'              => true,
    // 应用Trace
    'app_trace'              => true,

    // +----------------------------------------------------------------------
    // | 日志设置
    // +----------------------------------------------------------------------

    'log'                    => [
        // 日志记录方式，内置 file socket 支持扩展
        'type'  => 'File',
        // 日志保存目录
        'path'  => LOG_PATH,
        // 日志记录级别
        'level' => [],
    ],
    
    // +----------------------------------------------------------------------
    // | 缓存设置
    // +----------------------------------------------------------------------
    
    'cache'                  => [
        // 驱动方式
        
//         'type' => 'File',
//         'path'   => CACHE_PATH,
        
        'type' => 'redis',
        // redis主机
        'host'       => '127.0.0.1',
        // redis端口
        'port'       => 6379,
        // 缓存前缀
        'prefix' => 'elite_ch_',
        // 缓存有效期 0表示永久缓存
        'expire' => 0,
    ],
    
    // +----------------------------------------------------------------------
    // | 会话设置
    // +----------------------------------------------------------------------
    'session' => [
        'id' => '',
        // SESSION_ID的提交变量,解决flash上传跨域
        'var_session_id' => 'session_id',
        // SESSION 前缀
        'prefix' => 'elite_',
        // 驱动方式 支持redis memcache memcached
//         'type' => '',
        'type' => 'redis',
        // redis主机
        'host'       => '127.0.0.1',
        // redis端口
        'port'       => 6379,
        // 是否自动开启 SESSION
        'auto_start' => true
    ],
    // 默认时区
    'default_timezone'       => 'PRC',
    
];
